package com.demo.services;

import com.demo.database.data.TDemoDepartment;
import com.demo.database.data.TDemoEmployee;
import com.demo.database.data.TDemoPosition;

import java.util.List;

/**
 * 员工管理业务实现接口
 * @cuthor luoxiaojiang
 * @createTime 2019年11月07日15:58:08
 * @Verson 1.0.0
 */

public interface IEmployeeService {

    /**
     * 查询员工表的所有数据（可以按条件查询）
     * @param context
     * @return
     * @throws Exception
     */
    public List<TDemoEmployee> employeeQuery(String context) throws Exception;

    /**
     * 根据员工ID查询员工的数据
     * @param employeeId
     * @return
     * @throws Exception
     */
    public TDemoEmployee employeeQueryID(Integer employeeId) throws Exception;

    /**
     * 添加员工数据
     * @param employee
     * @throws Exception
     */
    public List<TDemoEmployee> employeeAdd(TDemoEmployee employee) throws Exception;

    /**
     * 修改员工数据
     * @param employee
     * @throws Exception
     */
    public List<TDemoEmployee> employeeUpd(TDemoEmployee employee) throws Exception;

    /**
     * 根据员工ID删除员工数据
     * @param ids
     * @throws Exception
     */
    public List<TDemoEmployee> employeeDel(String... ids) throws Exception;

}
